package com.icinfo.cloud.provider.common.zlb.service;

import com.icinfo.framework.core.service.BaseService;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.util.Map;

/**
 * 浙里办登录服务接口
 *
 * @author zhengqiang
 * @date 2023-02-07
 **/
public interface ZlbEntLoginService extends BaseService {

    /**
     * 浙里办法人用户登录回调处理，返回调整地址
     *
     * @param request
     * @return
     * @author zhengqiang
     * @date 2023-02-07
     **/
    //String getLegalRedirectUrl(HttpServletRequest request) throws UnsupportedEncodingException;

    /**
     * 浙里办个人用户登录回调处理，返回调整地址
     *
     * @param request
     * @return
     * @author zhengqiang
     * @date 2023-02-07
     **/
    String getPersonalRedirectUrl(HttpServletRequest request) throws UnsupportedEncodingException;


    /**
     * 获取法人信息
     *
     * @param ticketId
     * @return
     */
    Object getLegalUser(String ticketId);

    /**
     * 浙里办微信接入获取token
     *
     * @param ticketId
     * @return
     * @author zhengqiang
     * @date 2022-10-13
     **/
    String getTokenByTicketId(String ticketId);

    /**
     * 浙里办微信接入获取用户信息
     *
     * @param accessToken
     * @return
     * @author zhengqiang
     * @date 2022-10-13
     **/
    Map<String, String> getUserInfoByToken(String accessToken);


}
